﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class BusinessCategoriesApplyDetailInfoConfig : EntityTypeConfiguration<BusinessCategoriesApplyDetailInfo>
    {
        public BusinessCategoriesApplyDetailInfoConfig()
        {
            ToTable("Himall_BusinessCategoriesApplyDetail");
        
            HasRequired(x => x.Himall_BusinessCategoriesApply).WithMany(x => x.Himall_BusinessCategoriesApplyDetail).HasForeignKey(x => x.ApplyId);
            HasRequired(x => x.Himall_Categories).WithMany(x => x.Himall_BusinessCategoriesApplyDetail).HasForeignKey(x => x.CategoryId);
        }
    }
}
